﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfAdmisionBuscarPaciente.aspx.cs" Inherits="Clinica_wfAdmisionBuscarPaciente" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

tbody {
  border-top: 1px solid #ccc;
}
        .style3
        {
            width: 921px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:65%; height: 275px;">
            <tr>
                <td colspan="2" align="center">
                    <dx:ASPxLabel ID="lblMensaje" runat="server" Font-Bold="True" 
                        Font-Size="Medium" ForeColor="Red">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <dx:ASPxGridView ID="dgBuscar" runat="server" AutoGenerateColumns="False" 
                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                        DataSourceID="ObjectDataSource1" Width="1009px" 
                        KeyFieldName="PAC_ID_PACIENTE">
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="ID" FieldName="PAC_ID_PACIENTE" 
                                VisibleIndex="1">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Apellido Paterno" 
                                FieldName="PAC_APELLIDO_PATERNO" VisibleIndex="3">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Apellido Materno" 
                                FieldName="PAC_APELLIDO_MATERNO" VisibleIndex="4">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Nombres" 
                                FieldName="PAC_NOMBRES" VisibleIndex="5">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="DNI" FieldName="PAC_NRO_DOCUMENTO" 
                                VisibleIndex="9">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="PAC_CODIGO_PACIENTE" VisibleIndex="2" 
                                Caption="Codigo Paciente">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <SettingsBehavior AllowFocusedRow="True" AllowSelectByRowClick="True" 
                            AutoFilterRowInputDelay="1000" ColumnResizeMode="Control" />
                        <SettingsPager NumericButtonCount="7" PageSize="7">
                            <AllButton Text="Todos">
                            </AllButton>
                            <NextPageButton Text="Siguiente&gt;">
                            </NextPageButton>
                            <PrevPageButton Text="&lt; Previo">
                            </PrevPageButton>
                        </SettingsPager>
                        <Settings ShowFilterRow="True" ShowFilterBar="Auto" ShowGroupPanel="True" />
                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                            CssPostfix="PlasticBlue">
                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                            </Header>
                        </Styles>
                        <StylesEditors>
                            <CalendarHeader Spacing="11px">
                            </CalendarHeader>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="listar" TypeName="Negocio.Clases_BL.clsPacienteBLcs">
                    </asp:ObjectDataSource>
                </td>
            </tr>
            <tr>
                <td align="right" class="style3">
                    <dx:ASPxButton ID="btnAceptar" runat="server" Height="24px" Text="Aceptar" 
                        Width="110px" onclick="btnAceptar_Click">
                    </dx:ASPxButton>
                </td>
                <td align="right">
                    <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar" Width="110px" 
                        onclick="btnCancelar_Click">
                    </dx:ASPxButton>
                </td>
            </tr>
            </table>
    
    </div>
    </form>
</body>
</html>
